package ch18.v3.util;

public class SysOutput {

    public static void show(String s) {
        int l = s.length();
        if (l > 30)
            l = 30;
        s = "\n" + s + "\n";
        for (int i = 0; i < l * 2 - 1; i++) {
            s = "*" + s + "*";
        }
        System.out.println(s);
    }
    // 处理分割显示
    public static void show() {
        String s = "";
        for (int i = 0; i < 30; i++) {
            s = "*" + s;
        }
        System.out.println(s);
    }
}
